<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>我是server1中的页面</h1>
    <p>我接下来请求server2的地址 </p>
    <p>server1 的地址是 localhost:8080/static/views/html</p>
    <p>请求的地址是 localhost:9090/api/list</p>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>

    <script>
        // axios
        // .get('http://localhost:9090/api/list')
        // .then(res=>{
        //     console.log(res);
        // });
        function fn1(res){
            console.log('这是后端返回的数据',res)
        }

        let sele = document.createElement('script')
        
        sele.src = `http://localhost:9090/api/list?kangbazi=fn1`

        document.body.appendChild(sele)

    </script>
</body>
</html>